package com.qing.expert.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("withdraw")
public class Withdraw {

    @TableId(type = IdType.ASSIGN_ID)
    private String withdrawId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 提现金额
     */
    private BigDecimal amount;

    /**
     * 类型：1=用户提现，2=达人提现
     */
    private Integer type;

    /**
     * 状态：0=审核中，1=成功，2=拒绝
     */
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 审核时间
     */
    private LocalDateTime auditTime;

    /**
     * 审核备注
     */
    private String auditRemark;
}